package com.chs.recoginition.repository;

import com.chs.recoginition.pojo.UserEmailCodeResult;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

/**
 * @Author CHS
 * @Date 2022/9/1 18:19
 * @Version 1.0
 **/
public interface UserEmailCodeRepository extends CrudRepository<UserEmailCodeResult, Integer> {
    /**
     * 查询用户code值
     * @param type
     * @param username
     * @return
     */

    List<UserEmailCodeResult> findByTypeAndUsernameOrderByIdDesc(String type,String username);
}
